{extend name="public:base" /}

{block name="title"}{$sysInfo.webname}-{$sysInfo.webtitle}{/block}
{block name="keywords"}{$sysInfo.keywords}{/block}
{block name="description"}{$sysInfo.descript}{/block}
{block name="column"}{include file="public/column" /}{/block}

{block name="content"}
<div class="layui-container">
  <div class="layui-row layui-col-space15">
	<div class="">{include file="public/menu" /}</div>
    <div class="layui-col-md8">
		<!--首页幻灯-->
		<div class="fly-panel"> 
		  {include file="public/index-slider" /}
		 </div> 
		<!--置顶文章-->
		  <div class="fly-panel">
			<div class="fly-panel-title fly-filter">
			  <a>{:lang('top')}</a>
			  <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">{:lang('go sign')}</a>
			</div>
			<ul class="fly-list">
			{volist name="artTop" id="top"  empty="还没有推荐"}
			  {include file="public/index-topforum" /}
			{/volist}
			</ul>
		  </div>
		<!--文章列表-->
		  <div class="fly-panel" style="margin-bottom: 0;">
		  {include file="public/filter" /}
			<ul class="fly-list">   
			{volist name="artList" id="art" empty="还没有帖子"}
			  {include file="public/index-forumlist" /}
			{/volist}  
			</ul>
			<div style="text-align: center">
			  <div class="laypage-main">
				<a href="{:url('article/cate',['ename'=>'all'])}" class="laypage-next">{:lang('more post')}</a>
			  </div>
			</div>
		  </div>
    </div>
    <div class="layui-col-md4">
		<!--签到-->
		<a name="signin"> </a>
		{include file="public/sign" /}
		<!--温馨通道-->
		<div class="fly-panel layui-hide-xs">
		<h3 class="fly-panel-title">{:lang('links list')}</h3>
		{include file="public/index-static" /}
		</div>
		
		<!--广告赞助-->
		<div class="fly-panel"> 
			<div class="fly-panel-title">{:lang('sponsor')}<span class="fly-mid"></span> 
				<a href="/" class="fly-link fly-joinad">{:lang('i want to join')}</a> 
			</div> 
		<div class="fly-panel-main" style="padding: 13px 15px;"> 
		{volist name="ad_index" id="vo"}
			<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
		{/volist}
		</div>
		</div>
		<!--回帖榜-->
		<div class="fly-panel fly-rank fly-rank-reply layui-hide-xs" id="LAY_replyRank">
			<h3 class="fly-panel-title">{:lang('reviewers list')}</h3>
			<dl>
			  <i class="layui-icon fly-loading">&#xe63d;</i>
			</dl>
		</div>
		<!--热帖榜-->
		<dl class="fly-panel fly-list-one layui-hide-xs">
			<dt class="fly-panel-title">{:lang('hot post list')}</dt>
			{volist name="artHot" id="vo"}
			<dd>
			  <a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
			  <span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
			</dd>
			{/volist}
		</dl>
		<!--首页图片广告-->
		<div class="fly-panel" style="padding: 5px 0; text-align: center;">
		{volist name="ad_comm" id="vo"}		
		  <a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
		{/volist}
        </div>
		<!--友情链接-->  
		{include file="public/flink" /}
    </div>
	
  </div>
</div>
{/block}

{block name="script"}
<script>
var replyUrl = "{:url('index/reply')}";
var signStatusUrl = "{:url('sign/status')}";
var signInUrl = "{:url('sign/sign')}";
var signRuleUrl = "{:url('sign/getsignrule')}";
var signJsonUrl = "{:url('sign/signJson')}";

$('#friend-link').on('click', function(){
	layer.open({
	  title: '申请友链',
	  content: '发送邮件至：{$adminEmail} ',
	  yes: function(index, layero){
			layer.close(index);
		}
	});
	return false;
});
	
</script>
{/block}